package org.jeecg.modules.bobo.wechat.miniapp.properties;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @program: jeecg-boot-parent
 * @description:
 * @author: 三千霜
 * @create: 2020-04-23 11:13
 */
@Component
@PropertySource("classpath:wxminiapp.properties")
@ConfigurationProperties(prefix = "miniapp")
@Data
public class WxminiappProperties {
    //微信小程序的appid
    private String appid;

    //微信小程序的Secret
    private String secret;
    //微信小程序消息服务器配置的token
    private String token;
    //微信小程序消息服务器配置的EncodingAESKey
    private String aesKey;
    private String msgDataFormat= "JSON";
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this,
                ToStringStyle.MULTI_LINE_STYLE);
    }
}
